<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix = "c"  uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html lang="en-US">
  <head>
    <link rel="stylesheet" type="text/css"  href="css/bootstrap.min.css"/>
	<title>凯胜项目管理系统</title>
	<style type="text/css">
		body{
			padding-top:70px;
		}
	</style>

  </head>
  
  <body class="body">
	<%@include file="same2.jsp" %>
	<div class="container">
		<div class="row">
			<%@include file="same.jsp" %>
			<div class="span9" >
				<div class="clear"></div>
				 <ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:10px">
					<li class="active">
						<a href="project.html"><i class="icon-fire"></i>想法>${requestScope.userIdea.idea.title}</a>
					</li>
				</ul>
				<div class="wall" style="border-top:none; border:1px solid #dddddd ">
					<div style="margin-left:20px;margin-right:10px">
						<div class="page-header" >
							<h3>${requestScope.userIdea.idea.title}&nbsp;&nbsp;<small>${requestScope.userIdea.user.username}${requestScope.userIdea.idea.createtime}</small></h3>
						</div>
						<p>${requestScope.userIdea.idea.content}</p>				  
						<div class="line">评论 </div>
						<form action="idea.jspx?imethod=tocomment" method="post" id="myform">
							<input type="hidden" name="ideaid" value="${requestScope.userIdea.idea.id}">
							<textarea name="content" class="span8" rows="5"></textarea>
							<br/>
							<button class="btn" id="btnSave">发布</button>
						</form>
					</div>
					<c:choose>
						<c:when test="${empty requestScope.Commentlist}">			
									没有关于此项目的任何想法！
						</c:when>
						<c:otherwise>
							<c:forEach items = "${requestScope.Commentlist}" var = "comment">	
								<div style="margin:20px">						
									<blockquote>
										  <p style="font-size:14px"> ${comment.content}</p>
										  <small>${comment.user.username}${comment.createtime}</small>
									</blockquote>						
								</div>
							</c:forEach>
						</c:otherwise>
					</c:choose>
					<div style="margin:20px"><a href="idea.jspx">←返回想法列表</a></div>
				</div>
			</div>
		</div>
	</div>	
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#myid li").eq(7).addClass("active");
			$("#myid i").eq(5).addClass("  icon-white");
			$("#btnSave").click(function(){
				$("#myform").submit();
			});
		});
		
	</script>
</body>
</html>
